package com.zhijian.medical.dao.local;

import com.zhijian.medical.entity.po.RoutineQc;
import com.zhijian.medical.entity.vo.request.RoutineQcPathologySearchVo;
import com.zhijian.medical.entity.vo.request.RoutineQcSearchVo;
import com.zhijian.medical.entity.vo.response.RoutineQcPathologyVo;
import com.zhijian.medical.entity.vo.response.RoutineQcVo;
import java.util.List;

import com.zhijian.util.page.Page;
import org.apache.ibatis.annotations.Param;

public interface RoutineQcMapper {
    int deleteByPrimaryKey(Long id);

    int insert(RoutineQc record);

    int insertSelective(RoutineQc record);

    RoutineQc selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(RoutineQc record);

    int updateByPrimaryKey(RoutineQc record);

    /**
     * 查询总数
     *
     * @param routineQcSearchVo
     * @return
     */
    int count(RoutineQcSearchVo routineQcSearchVo);

    /**
     * 查询列表
     *
     * @param routineQcSearchVo
     * @return
     */
    List<RoutineQcVo> selectList(RoutineQcSearchVo routineQcSearchVo);

    /**
     * 查询单个
     *
     * @param routineQcSearchVo
     * @return
     */
    RoutineQcVo selectOne(RoutineQcSearchVo routineQcSearchVo);

    /**
     * 根据ID查询vo
     *
     * @param id
     * @return
     */
    RoutineQcVo selectVoById(Long id);

    /**
     * 批量删除
     *
     * @param idList
     * @return
     */
    void deleteByIdList(@Param("idList") List<Long> idList);

    /**
     * 动态删除
     *
     * @param routineQcSearchVo
     * @return
     */
    void deleteByCondition(RoutineQcSearchVo routineQcSearchVo);

    /**
     * 批量新增
     *
     * @param entities
     * @return
     */
    int insertBatch(@Param("entities") List<RoutineQc> entities);

    /**
     * 返回病理信息
     * @param routineQcSearchVo
     * @return
     */
    List<RoutineQcPathologyVo> selectPatholoyList(RoutineQcPathologySearchVo routineQcSearchVo);

    /**
     * 查询大样本中无重复的病理数量
     * @param routineQcSearchVo
     * @return
     */
    int countPatholoy(RoutineQcPathologySearchVo routineQcSearchVo);

    int countPatholoyDay(String startTime);

    List<RoutineQcPathologyVo> selectPatholoyListDay(RoutineQcPathologySearchVo searchVo);
}